package cn.tqfeiyang.smartadmin.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 用户-权限实体
 *
 * @author tqfeiyang
 * @since 2024/8/20 13:58
 */
@Data
@TableName("sys_role_menu")
public class UserRoleEntity {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField
    private Long userId;

    /**
     * 角色id
     */
    @TableField
    private Long roleId;

}
